using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmPrExtraIncome")]
    public class PrExtraIncome
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ExtIncId", ResourceType = typeof(Resources.PrExtraIncomesResource))]
        public int ExtIncId { get; set; }

		[ForeignKey("Cmd")]
		[DataMember, Display(Name = "CmdId", ResourceType = typeof(Resources.PrExtraIncomesResource))]
        public Nullable<int> CmdId { get; set; }

		[ForeignKey("Emp")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.PrExtraIncomesResource))]
        public Nullable<int> EmpId { get; set; }

		[DataMember, Display(Name = "ExtAmount", ResourceType = typeof(Resources.PrExtraIncomesResource))]
        public Nullable<double> ExtAmount { get; set; }

		[ForeignKey("Mov")]
		[DataMember, Display(Name = "MovId", ResourceType = typeof(Resources.PrExtraIncomesResource))]
        public Nullable<int> MovId { get; set; }

		[DataMember, Display(Name = "StartDate", ResourceType = typeof(Resources.PrExtraIncomesResource))]
        public Nullable<System.DateTime> StartDate { get; set; }

		[DataMember, Display(Name = "EndDate", ResourceType = typeof(Resources.PrExtraIncomesResource))]
        public Nullable<System.DateTime> EndDate { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.PrExtraIncomesResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PrExtraIncomesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PrExtraIncomesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PrExtraIncomesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PrExtraIncomesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual PsCommand Cmd { get; set; }

		public virtual Employee Emp { get; set; }

		public virtual HRM.EsMoveRequest Mov { get; set; }

    }
}